
apue:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004007f8 <_init>:
  4007f8:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4007fc:	910003fd 	mov	x29, sp
  400800:	94000062 	bl	400988 <call_weak_fn>
  400804:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400808:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400810 <.plt>:
  400810:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400814:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf254>
  400818:	f947fe11 	ldr	x17, [x16, #4088]
  40081c:	913fe210 	add	x16, x16, #0xff8
  400820:	d61f0220 	br	x17
  400824:	d503201f 	nop
  400828:	d503201f 	nop
  40082c:	d503201f 	nop

0000000000400830 <syslog@plt>:
  400830:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400834:	f9400211 	ldr	x17, [x16]
  400838:	91000210 	add	x16, x16, #0x0
  40083c:	d61f0220 	br	x17

0000000000400840 <exit@plt>:
  400840:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400844:	f9400611 	ldr	x17, [x16, #8]
  400848:	91002210 	add	x16, x16, #0x8
  40084c:	d61f0220 	br	x17

0000000000400850 <dup@plt>:
  400850:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400854:	f9400a11 	ldr	x17, [x16, #16]
  400858:	91004210 	add	x16, x16, #0x10
  40085c:	d61f0220 	br	x17

0000000000400860 <fork@plt>:
  400860:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400864:	f9400e11 	ldr	x17, [x16, #24]
  400868:	91006210 	add	x16, x16, #0x18
  40086c:	d61f0220 	br	x17

0000000000400870 <open@plt>:
  400870:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400874:	f9401211 	ldr	x17, [x16, #32]
  400878:	91008210 	add	x16, x16, #0x20
  40087c:	d61f0220 	br	x17

0000000000400880 <sigemptyset@plt>:
  400880:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400884:	f9401611 	ldr	x17, [x16, #40]
  400888:	9100a210 	add	x16, x16, #0x28
  40088c:	d61f0220 	br	x17

0000000000400890 <__libc_start_main@plt>:
  400890:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400894:	f9401a11 	ldr	x17, [x16, #48]
  400898:	9100c210 	add	x16, x16, #0x30
  40089c:	d61f0220 	br	x17

00000000004008a0 <close@plt>:
  4008a0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008a4:	f9401e11 	ldr	x17, [x16, #56]
  4008a8:	9100e210 	add	x16, x16, #0x38
  4008ac:	d61f0220 	br	x17

00000000004008b0 <sigaction@plt>:
  4008b0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008b4:	f9402211 	ldr	x17, [x16, #64]
  4008b8:	91010210 	add	x16, x16, #0x40
  4008bc:	d61f0220 	br	x17

00000000004008c0 <__gmon_start__@plt>:
  4008c0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008c4:	f9402611 	ldr	x17, [x16, #72]
  4008c8:	91012210 	add	x16, x16, #0x48
  4008cc:	d61f0220 	br	x17

00000000004008d0 <abort@plt>:
  4008d0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008d4:	f9402a11 	ldr	x17, [x16, #80]
  4008d8:	91014210 	add	x16, x16, #0x50
  4008dc:	d61f0220 	br	x17

00000000004008e0 <openlog@plt>:
  4008e0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008e4:	f9402e11 	ldr	x17, [x16, #88]
  4008e8:	91016210 	add	x16, x16, #0x58
  4008ec:	d61f0220 	br	x17

00000000004008f0 <chdir@plt>:
  4008f0:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  4008f4:	f9403211 	ldr	x17, [x16, #96]
  4008f8:	91018210 	add	x16, x16, #0x60
  4008fc:	d61f0220 	br	x17

0000000000400900 <getrlimit@plt>:
  400900:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400904:	f9403611 	ldr	x17, [x16, #104]
  400908:	9101a210 	add	x16, x16, #0x68
  40090c:	d61f0220 	br	x17

0000000000400910 <setsid@plt>:
  400910:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400914:	f9403a11 	ldr	x17, [x16, #112]
  400918:	9101c210 	add	x16, x16, #0x70
  40091c:	d61f0220 	br	x17

0000000000400920 <umask@plt>:
  400920:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400924:	f9403e11 	ldr	x17, [x16, #120]
  400928:	9101e210 	add	x16, x16, #0x78
  40092c:	d61f0220 	br	x17

0000000000400930 <printf@plt>:
  400930:	b0000090 	adrp	x16, 411000 <syslog@GLIBC_2.17>
  400934:	f9404211 	ldr	x17, [x16, #128]
  400938:	91020210 	add	x16, x16, #0x80
  40093c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400940 <_start>:
  400940:	d280001d 	mov	x29, #0x0                   	// #0
  400944:	d280001e 	mov	x30, #0x0                   	// #0
  400948:	aa0003e5 	mov	x5, x0
  40094c:	f94003e1 	ldr	x1, [sp]
  400950:	910023e2 	add	x2, sp, #0x8
  400954:	910003e6 	mov	x6, sp
  400958:	580000c0 	ldr	x0, 400970 <_start+0x30>
  40095c:	580000e3 	ldr	x3, 400978 <_start+0x38>
  400960:	58000104 	ldr	x4, 400980 <_start+0x40>
  400964:	97ffffcb 	bl	400890 <__libc_start_main@plt>
  400968:	97ffffda 	bl	4008d0 <abort@plt>
  40096c:	00000000 	.inst	0x00000000 ; undefined
  400970:	00400c30 	.word	0x00400c30
  400974:	00000000 	.word	0x00000000
  400978:	00400c50 	.word	0x00400c50
  40097c:	00000000 	.word	0x00000000
  400980:	00400cd0 	.word	0x00400cd0
  400984:	00000000 	.word	0x00000000

0000000000400988 <call_weak_fn>:
  400988:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf254>
  40098c:	f947f000 	ldr	x0, [x0, #4064]
  400990:	b4000040 	cbz	x0, 400998 <call_weak_fn+0x10>
  400994:	17ffffcb 	b	4008c0 <__gmon_start__@plt>
  400998:	d65f03c0 	ret
  40099c:	00000000 	.inst	0x00000000 ; undefined

00000000004009a0 <deregister_tm_clones>:
  4009a0:	b0000080 	adrp	x0, 411000 <syslog@GLIBC_2.17>
  4009a4:	91026000 	add	x0, x0, #0x98
  4009a8:	b0000081 	adrp	x1, 411000 <syslog@GLIBC_2.17>
  4009ac:	91026021 	add	x1, x1, #0x98
  4009b0:	eb00003f 	cmp	x1, x0
  4009b4:	540000a0 	b.eq	4009c8 <deregister_tm_clones+0x28>  // b.none
  4009b8:	90000001 	adrp	x1, 400000 <_init-0x7f8>
  4009bc:	f9467821 	ldr	x1, [x1, #3312]
  4009c0:	b4000041 	cbz	x1, 4009c8 <deregister_tm_clones+0x28>
  4009c4:	d61f0020 	br	x1
  4009c8:	d65f03c0 	ret
  4009cc:	d503201f 	nop

00000000004009d0 <register_tm_clones>:
  4009d0:	b0000080 	adrp	x0, 411000 <syslog@GLIBC_2.17>
  4009d4:	91026000 	add	x0, x0, #0x98
  4009d8:	b0000081 	adrp	x1, 411000 <syslog@GLIBC_2.17>
  4009dc:	91026021 	add	x1, x1, #0x98
  4009e0:	cb000021 	sub	x1, x1, x0
  4009e4:	9343fc21 	asr	x1, x1, #3
  4009e8:	8b41fc21 	add	x1, x1, x1, lsr #63
  4009ec:	9341fc21 	asr	x1, x1, #1
  4009f0:	b40000a1 	cbz	x1, 400a04 <register_tm_clones+0x34>
  4009f4:	90000002 	adrp	x2, 400000 <_init-0x7f8>
  4009f8:	f9467c42 	ldr	x2, [x2, #3320]
  4009fc:	b4000042 	cbz	x2, 400a04 <register_tm_clones+0x34>
  400a00:	d61f0040 	br	x2
  400a04:	d65f03c0 	ret

0000000000400a08 <__do_global_dtors_aux>:
  400a08:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400a0c:	910003fd 	mov	x29, sp
  400a10:	f9000bf3 	str	x19, [sp, #16]
  400a14:	b0000093 	adrp	x19, 411000 <syslog@GLIBC_2.17>
  400a18:	39426260 	ldrb	w0, [x19, #152]
  400a1c:	35000080 	cbnz	w0, 400a2c <__do_global_dtors_aux+0x24>
  400a20:	97ffffe0 	bl	4009a0 <deregister_tm_clones>
  400a24:	52800020 	mov	w0, #0x1                   	// #1
  400a28:	39026260 	strb	w0, [x19, #152]
  400a2c:	f9400bf3 	ldr	x19, [sp, #16]
  400a30:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400a34:	d65f03c0 	ret

0000000000400a38 <frame_dummy>:
  400a38:	17ffffe6 	b	4009d0 <register_tm_clones>

0000000000400a3c <daemonize_test>:
  400a3c:	a9b27bfd 	stp	x29, x30, [sp, #-224]!
  400a40:	910003fd 	mov	x29, sp
  400a44:	f9000fa0 	str	x0, [x29, #24]
  400a48:	52800000 	mov	w0, #0x0                   	// #0
  400a4c:	97ffffb5 	bl	400920 <umask@plt>
  400a50:	9102e3a0 	add	x0, x29, #0xb8
  400a54:	aa0003e1 	mov	x1, x0
  400a58:	528000e0 	mov	w0, #0x7                   	// #7
  400a5c:	97ffffa9 	bl	400900 <getrlimit@plt>
  400a60:	7100001f 	cmp	w0, #0x0
  400a64:	540000aa 	b.ge	400a78 <daemonize_test+0x3c>  // b.tcont
  400a68:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400a6c:	91340000 	add	x0, x0, #0xd00
  400a70:	f9400fa1 	ldr	x1, [x29, #24]
  400a74:	97ffffaf 	bl	400930 <printf@plt>
  400a78:	97ffff7a 	bl	400860 <fork@plt>
  400a7c:	b900dba0 	str	w0, [x29, #216]
  400a80:	b940dba0 	ldr	w0, [x29, #216]
  400a84:	7100001f 	cmp	w0, #0x0
  400a88:	540000ca 	b.ge	400aa0 <daemonize_test+0x64>  // b.tcont
  400a8c:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400a90:	91348000 	add	x0, x0, #0xd20
  400a94:	f9400fa1 	ldr	x1, [x29, #24]
  400a98:	97ffffa6 	bl	400930 <printf@plt>
  400a9c:	14000006 	b	400ab4 <daemonize_test+0x78>
  400aa0:	b940dba0 	ldr	w0, [x29, #216]
  400aa4:	7100001f 	cmp	w0, #0x0
  400aa8:	54000060 	b.eq	400ab4 <daemonize_test+0x78>  // b.none
  400aac:	52800000 	mov	w0, #0x0                   	// #0
  400ab0:	97ffff64 	bl	400840 <exit@plt>
  400ab4:	97ffff97 	bl	400910 <setsid@plt>
  400ab8:	d2800020 	mov	x0, #0x1                   	// #1
  400abc:	f90013a0 	str	x0, [x29, #32]
  400ac0:	910083a0 	add	x0, x29, #0x20
  400ac4:	91002000 	add	x0, x0, #0x8
  400ac8:	97ffff6e 	bl	400880 <sigemptyset@plt>
  400acc:	b900abbf 	str	wzr, [x29, #168]
  400ad0:	910083a0 	add	x0, x29, #0x20
  400ad4:	d2800002 	mov	x2, #0x0                   	// #0
  400ad8:	aa0003e1 	mov	x1, x0
  400adc:	52800020 	mov	w0, #0x1                   	// #1
  400ae0:	97ffff74 	bl	4008b0 <sigaction@plt>
  400ae4:	7100001f 	cmp	w0, #0x0
  400ae8:	540000aa 	b.ge	400afc <daemonize_test+0xc0>  // b.tcont
  400aec:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400af0:	9134c000 	add	x0, x0, #0xd30
  400af4:	f9400fa1 	ldr	x1, [x29, #24]
  400af8:	97ffff8e 	bl	400930 <printf@plt>
  400afc:	97ffff59 	bl	400860 <fork@plt>
  400b00:	b900dba0 	str	w0, [x29, #216]
  400b04:	b940dba0 	ldr	w0, [x29, #216]
  400b08:	7100001f 	cmp	w0, #0x0
  400b0c:	540000ca 	b.ge	400b24 <daemonize_test+0xe8>  // b.tcont
  400b10:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400b14:	91348000 	add	x0, x0, #0xd20
  400b18:	f9400fa1 	ldr	x1, [x29, #24]
  400b1c:	97ffff85 	bl	400930 <printf@plt>
  400b20:	14000006 	b	400b38 <daemonize_test+0xfc>
  400b24:	b940dba0 	ldr	w0, [x29, #216]
  400b28:	7100001f 	cmp	w0, #0x0
  400b2c:	54000060 	b.eq	400b38 <daemonize_test+0xfc>  // b.none
  400b30:	52800000 	mov	w0, #0x0                   	// #0
  400b34:	97ffff43 	bl	400840 <exit@plt>
  400b38:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400b3c:	91352000 	add	x0, x0, #0xd48
  400b40:	97ffff6c 	bl	4008f0 <chdir@plt>
  400b44:	7100001f 	cmp	w0, #0x0
  400b48:	540000aa 	b.ge	400b5c <daemonize_test+0x120>  // b.tcont
  400b4c:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400b50:	91354000 	add	x0, x0, #0xd50
  400b54:	f9400fa1 	ldr	x1, [x29, #24]
  400b58:	97ffff76 	bl	400930 <printf@plt>
  400b5c:	f94063a0 	ldr	x0, [x29, #192]
  400b60:	b100041f 	cmn	x0, #0x1
  400b64:	54000061 	b.ne	400b70 <daemonize_test+0x134>  // b.any
  400b68:	d2808000 	mov	x0, #0x400                 	// #1024
  400b6c:	f90063a0 	str	x0, [x29, #192]
  400b70:	b900dfbf 	str	wzr, [x29, #220]
  400b74:	14000006 	b	400b8c <daemonize_test+0x150>
  400b78:	b940dfa0 	ldr	w0, [x29, #220]
  400b7c:	97ffff49 	bl	4008a0 <close@plt>
  400b80:	b940dfa0 	ldr	w0, [x29, #220]
  400b84:	11000400 	add	w0, w0, #0x1
  400b88:	b900dfa0 	str	w0, [x29, #220]
  400b8c:	b980dfa1 	ldrsw	x1, [x29, #220]
  400b90:	f94063a0 	ldr	x0, [x29, #192]
  400b94:	eb00003f 	cmp	x1, x0
  400b98:	54ffff03 	b.cc	400b78 <daemonize_test+0x13c>  // b.lo, b.ul, b.last
  400b9c:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400ba0:	9135c000 	add	x0, x0, #0xd70
  400ba4:	52800041 	mov	w1, #0x2                   	// #2
  400ba8:	97ffff32 	bl	400870 <open@plt>
  400bac:	b900d7a0 	str	w0, [x29, #212]
  400bb0:	52800000 	mov	w0, #0x0                   	// #0
  400bb4:	97ffff27 	bl	400850 <dup@plt>
  400bb8:	b900d3a0 	str	w0, [x29, #208]
  400bbc:	52800000 	mov	w0, #0x0                   	// #0
  400bc0:	97ffff24 	bl	400850 <dup@plt>
  400bc4:	b900cfa0 	str	w0, [x29, #204]
  400bc8:	52800302 	mov	w2, #0x18                  	// #24
  400bcc:	52800041 	mov	w1, #0x2                   	// #2
  400bd0:	f9400fa0 	ldr	x0, [x29, #24]
  400bd4:	97ffff43 	bl	4008e0 <openlog@plt>
  400bd8:	b940d7a0 	ldr	w0, [x29, #212]
  400bdc:	7100001f 	cmp	w0, #0x0
  400be0:	540000e1 	b.ne	400bfc <daemonize_test+0x1c0>  // b.any
  400be4:	b940d3a0 	ldr	w0, [x29, #208]
  400be8:	7100041f 	cmp	w0, #0x1
  400bec:	54000081 	b.ne	400bfc <daemonize_test+0x1c0>  // b.any
  400bf0:	b940cfa0 	ldr	w0, [x29, #204]
  400bf4:	7100081f 	cmp	w0, #0x2
  400bf8:	54000160 	b.eq	400c24 <daemonize_test+0x1e8>  // b.none
  400bfc:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400c00:	91360000 	add	x0, x0, #0xd80
  400c04:	b940cfa4 	ldr	w4, [x29, #204]
  400c08:	b940d3a3 	ldr	w3, [x29, #208]
  400c0c:	b940d7a2 	ldr	w2, [x29, #212]
  400c10:	aa0003e1 	mov	x1, x0
  400c14:	52800060 	mov	w0, #0x3                   	// #3
  400c18:	97ffff06 	bl	400830 <syslog@plt>
  400c1c:	52800020 	mov	w0, #0x1                   	// #1
  400c20:	97ffff08 	bl	400840 <exit@plt>
  400c24:	d503201f 	nop
  400c28:	a8ce7bfd 	ldp	x29, x30, [sp], #224
  400c2c:	d65f03c0 	ret

0000000000400c30 <main>:
  400c30:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400c34:	910003fd 	mov	x29, sp
  400c38:	90000000 	adrp	x0, 400000 <_init-0x7f8>
  400c3c:	9136a000 	add	x0, x0, #0xda8
  400c40:	97ffff7f 	bl	400a3c <daemonize_test>
  400c44:	52800000 	mov	w0, #0x0                   	// #0
  400c48:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400c4c:	d65f03c0 	ret

0000000000400c50 <__libc_csu_init>:
  400c50:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400c54:	910003fd 	mov	x29, sp
  400c58:	a901d7f4 	stp	x20, x21, [sp, #24]
  400c5c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf254>
  400c60:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf254>
  400c64:	91374294 	add	x20, x20, #0xdd0
  400c68:	913722b5 	add	x21, x21, #0xdc8
  400c6c:	a902dff6 	stp	x22, x23, [sp, #40]
  400c70:	cb150294 	sub	x20, x20, x21
  400c74:	f9001ff8 	str	x24, [sp, #56]
  400c78:	2a0003f6 	mov	w22, w0
  400c7c:	aa0103f7 	mov	x23, x1
  400c80:	9343fe94 	asr	x20, x20, #3
  400c84:	aa0203f8 	mov	x24, x2
  400c88:	97fffedc 	bl	4007f8 <_init>
  400c8c:	b4000194 	cbz	x20, 400cbc <__libc_csu_init+0x6c>
  400c90:	f9000bb3 	str	x19, [x29, #16]
  400c94:	d2800013 	mov	x19, #0x0                   	// #0
  400c98:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400c9c:	aa1803e2 	mov	x2, x24
  400ca0:	aa1703e1 	mov	x1, x23
  400ca4:	2a1603e0 	mov	w0, w22
  400ca8:	91000673 	add	x19, x19, #0x1
  400cac:	d63f0060 	blr	x3
  400cb0:	eb13029f 	cmp	x20, x19
  400cb4:	54ffff21 	b.ne	400c98 <__libc_csu_init+0x48>  // b.any
  400cb8:	f9400bb3 	ldr	x19, [x29, #16]
  400cbc:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400cc0:	a942dff6 	ldp	x22, x23, [sp, #40]
  400cc4:	f9401ff8 	ldr	x24, [sp, #56]
  400cc8:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400ccc:	d65f03c0 	ret

0000000000400cd0 <__libc_csu_fini>:
  400cd0:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400cd4 <_fini>:
  400cd4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400cd8:	910003fd 	mov	x29, sp
  400cdc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400ce0:	d65f03c0 	ret
